Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas web view example #704

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tqtran7
Copy link

@tqtran7 tqtran7 commented Jun 28, 2021

  • Replaced onGUI with a canvas example that looks more like a web browser.
  • Added a resize method that will adjust the web view to the canvas.
  • Added unity event handlers so other components can hook into the events.
  • Some additional code cleanup.

@KojiNakamaru
Copy link
Member

Thank you for the contribution. Could you please also add a meta file? Without it, CanvasSample.unity cannot refer CanvasWebView.cs (and .gitignore should not have *.meta).

@rk042
Copy link

rk042 commented Oct 18, 2021

I try it but it's not rendering, can you please explain it?

@rk042
Copy link

rk042 commented Oct 18, 2021

  • Replaced onGUI with a canvas example that looks more like a web browser.
  • Added a resize method that will adjust the web view to the canvas.
  • Added unity event handlers so other components can hook into the events.
  • Some additional code cleanup.

How? I get nothing in my canvas panel.

@KojiNakamaru
Copy link
Member

This pull request is incomplete as I discussed before. I fixed it in the following branch:
https://github.com/gree/unity-webview/tree/tqtran7-canvasWebview-with-some-fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants